<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.2.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/eComboBox.min.js"></script>

<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/styles.css"/>

	<script type="text/javascript">
	    function submitForm(){
			$("#zapato").submit();
		}
	</script>

<form:form commandName="zapato" action="${pageContext.request.contextPath}/zapato/processModify.htm">
	<input type="hidden" id="id" name="id" />
	<table class="table">
		<tr><td class="tdtitle" colspan="2">
			<spring:message code="zapato.title.modify"/>
		</td></tr>
		<tr>
			<td>
				<spring:message code="zapato.id"/>
			</td>
			<td>
				<form:input path="id"/>
				<form:errors path="id" cssClass="error" />
			</td>
		</tr>
		<tr>
			<td>
				<spring:message code="zapato.talle"/>
			</td>
			<td>
				<form:input path="talle"/>
				<form:errors path="talle" cssClass="error" />
			</td>
		</tr>
		<tr>
			<td>
				<spring:message code="zapato.color"/>
			</td>
			<td>
				<form:input path="color"/>
				<form:errors path="color" cssClass="error" />
			</td>
		</tr>
		<tr>
			<td>
				<spring:message code="zapato.marca"/>
			</td>
			<td>
				<form:input path="marca"/>
				<form:errors path="marca" cssClass="error" />
			</td>
		</tr>
		<tr>
			<td width="50%" class="tdtitle">
				<input type="button" onclick="submitForm()" value="<spring:message code="submit"/>" class="groovybutton"/>
			</td>
			<td class="tdtitle">
				<input class="groovybutton" id="return" type="button" value="<spring:message code="goBack"/>" 
					onclick="$('#zapato')[0].action='${pageContext.request.contextPath}/zapato/paginate.htm';$('#zapato')[0].submit()" />
			</td>
		</tr>
	</table>
</form:form>

<table style="margin-left:auto;margin-right:auto">
	<tr>
		<td>
			<a href="${pageContext.request.contextPath}"><img height="50px" src="${pageContext.request.contextPath}/images/home.gif" alt="Home"></a>
		</td>
	</tr>		
</table>
